package zdm.controller;

import zdm.annotation.ZdmAutowired;
import zdm.annotation.ZdmController;
import zdm.annotation.ZdmRequestMapping;
import zdm.service.TestService;

/**
 * @Author: 张德明
 * @CreateTime: 2025-06-18 10:06:52
 * @Description: 测试ZdmController类
 */

@ZdmController
public class TestController {

    // 注入一个service进行测试
    @ZdmAutowired
    private TestService testService;


    @ZdmRequestMapping("/test")
    public String test() {
        // 调用service方法进行测试
        return testService.test("张德明");
    }

    @ZdmRequestMapping("/test2")
    public String test2() {
        return "张德明2";
    }

    @ZdmRequestMapping("/test3")
    public String test3() {
        return "张德明3";
    }


}
